
export function validatePhoneNum (rule: any, value: any, callback: any){
  const phoneRegex = /^1[3456789]\d{9}$/;
  if (!phoneRegex.test(value)) {
    callback(new Error("手机号码格式不正确"));
  } else {
    callback();
  }
};

